var RunLayer14 = cc.Layer.extend({
	backgroundLayer : null,
	mainLayar : null,
	ctor:function () {
		this._super();
		this.initFrames();
		this.loadBackground();
		this.loadMainLayer();
	},
	initFrames : function(){
		cc.spriteFrameCache.addSpriteFrames(res_run14.run_p);
	},
	loadBackground : function(){
		this.backgroundLayer = new RunBackgroundLayer();
		this.addChild(this.backgroundLayer);
	},
	loadMainLayer : function(){
		this.mainLayar = new RunMainLayer14();
		this.addChild(this.mainLayar);
	}
});

var RunScene14 = PScene.extend({
	onEnter:function () {
		this._super();
		gg.initTeach();
		this.initTeach();
		var layer = new RunLayer14();
		this.addChild(layer);
	},
	initTeach:function(){
		// 初始化游戏参数

		gg.expId = 67;		
		gg.begin_time = new Date();
		gg.score = 0;
		gg.firstRun = true;		
		gg.teach_flow=teach_flow14;
		gg.flow = new TeachFlow();
		gg.totalStep = gg.teach_flow.length;
	}
});
